---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: tomcat
  name: tomcat-nodeport
spec:
  type: NodePort
  # externalTrafficPolicy: Local
  selector:
    app: tomcat
  ports:
    - protocol: TCP
      port: 80
      targetPort: tomcat
      # nodePort: 30080
